/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ipartek.formacion.gestformwww.modelo;

import com.ipartek.formacion.gestformwww.modelo.clases.DAOFactory;

import java.util.ResourceBundle;

/**
 *
 * @author Sara y Xarles
 */
public class ModeloUsuario {
    private DAOFactory factoria=null;

    public ModeloUsuario(){
        factoria = DAOFactory.getDAOFactory(DAOFactory.SQLSERVER);
    }

    public boolean validarUsuario(String usuario, String password, ResourceBundle bundle) {
        return factoria.getIAccesoDAO().validarUsuario(usuario, password, bundle);
    }
}
